package com.iims.finance.service;

import com.iims.finance.domain.CmisCwIncomeAffirm;
import com.iims.finance.vo.resp.CmisCwIncomeAffirmDetailVo;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/9 22:30
 */
public interface ICmisCwIncomeAffirmService {
    /**
     * 查询收入确认列表
     *
     * @param incomeAffirm
     * @return
     */
    List<CmisCwIncomeAffirmDetailVo> getCwIncomeAffirmList(CmisCwIncomeAffirm incomeAffirm);

    /**
     * 查询合同收入确认列表
     *
     * @param contractId
     * @return
     */
    List<CmisCwIncomeAffirmDetailVo> getContractCwIncomeAffirmList(Long contractId);

    /**
     * 查询指定收入确认详情
     *
     * @return
     */
    CmisCwIncomeAffirmDetailVo getCwIncomeAffirmDetailById(Long proId);

    /**
     * 新增
     *
     * @param incomeAffirm
     */
    void insertCwIncomeAffirm(CmisCwIncomeAffirm incomeAffirm);

    /**
     * 更新
     *
     * @param incomeAffirm
     */
    void updateCwIncomeAffirm(CmisCwIncomeAffirm incomeAffirm);

    /**
     * 删除
     *
     * @param affirmId
     */
    void deleteById(Long affirmId);

    /**
     * 检查收入确认使用情况
     *
     * @param affirmId
     */
    void checkCmisCwIncomeAffirmUse(Long affirmId);
}
